<template>
  <div class="loading" :style="{ 'background-color': backgroundColor }">
    <div class="content">
      <van-loading type="spinner" />
      <p>{{ $t('info.info2') }}</p>
    </div>
  </div>
</template>
<script>
export default {
  name: 'loading',
  props: {
    backgroundColor: {
      type: String,
      default: 'transparent'
    }
  }
}
</script>
<style lang="less" scoped>
.loading {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999999999;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  .content {
    text-align: center;
    padding: 20px 0;
    width: 128px;
    background-color: rgba(17, 17, 17, 0.7);
    border-radius: 5px;
    color: #fff;

    p {
      margin-top: 10px;
      font-size: 16px;
    }
  }
}
</style>
